#include<iostream>
using namespace std;
int main()
{
cout<<5<<endl<<2<<endl<<1<<endl<<3<<endl<<4<<endl;
return 0;
}